<% form_for @requirement do |f| %>
  <%= f.error_messages %>

<p>
  <label for="name" class="label">标题:</label><br/>
  <%= f.text_field :title %>
</p>

<p>
  <label for="name" class="label">描述:</label><br/>
  <%= f.text_area :description %>
</p>

<p>
  <label for="name" class="label">起始时间:</label><br/>
  <%= f.date_select(:start_time) %>
</p>

<p>
  <label for="name" class="label">应完成时间:</label><br/>
  <%= f.date_select(:should_be_finish_time) %>
</p>

<p>
  <label for="name" class="label">开发人员:</label>
  <%= f.select(:user_id, User.all.collect {|p| [ p.name, p.id ] }, { :include_blank => false }) %>
</p>

<p>
  <%= f.submit "更新" %>
</p>

<% end %>